package top.topsmart.api.bycenter.model;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class User {
    private String id;

    private String openid;

    private String infoId;

    private Integer level;

    private Boolean status;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date regTime;

    private Boolean delFlag;

    public User(String id, String openid, String infoId, Integer level, Boolean status,Date regTime, Boolean delFlag) {
        this.id = id;
        this.openid = openid;
        this.infoId = infoId;
        this.level = level;
        this.status = status;
        this.regTime = regTime;
        this.delFlag = delFlag;
    }

    public User(String id, String openid, String infoId, Integer level, Boolean status, Boolean delFlag) {
        this.id = id;
        this.openid = openid;
        this.infoId = infoId;
        this.level = level;
        this.status = status;
        this.delFlag = delFlag;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid == null ? null : openid.trim();
    }

    public String getInfoId() {
        return infoId;
    }

    public void setInfoId(String infoId) {
        this.infoId = infoId == null ? null : infoId.trim();
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public Boolean getStatus() {
        return status;
    }

    public void setStatus(Boolean status) {
        this.status = status;
    }

    public Date getRegTime() {
        return regTime;
    }

    public void setRegTime(Date regTime) {
        this.regTime = regTime;
    }

    public Boolean getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Boolean delFlag) {
        this.delFlag = delFlag;
    }
}